package com.shcowin.biz;

import java.util.List;

import org.springframework.dao.DataAccessException;
 
/**
 * function: biz��Account�ӿ�
 * @author hoojo
 * @createDate 2011-4-13 ����11:33:04
 * @file AccountBiz.java
 * @package com.hoo.biz
 * @project MyBatisForSpring
 * @blog http://blog.csdn.net/IBM_hoojo
 * @email hoojo_@126.com
 * @version 1.0
 */
public interface NewsBiz<T> {
    /**
     * function: ���Account������Ϣ
     * @author hoojo
     * @createDate 2011-4-13 ����11:50:05
     * @param entity Account
     * @return boolean �Ƿ�ɹ�
     * @throws DataAccessException
     */
    public boolean add(T entity) throws DataAccessException;
    
    public boolean edit(T entity) throws DataAccessException;
    
    /**
     * function: ���id�Ե�Account��Ϣ
     * @author hoojo
     * @createDate 2011-4-13 ����11:50:45
     * @param id ���id
     * @return Account
     * @throws DataAccessException
     */
    public T getById(Integer id) throws DataAccessException;
    
    /**
     * function: ��ѯ����Account��Ϣ
     * @author hoojo
     * @createDate 2011-4-13 ����11:51:45
     * @param id ���id
     * @return Account
     * @throws DataAccessException
     */
    public List<T> getAll() throws DataAccessException;
    
    public void del(int id) throws DataAccessException;
    
    public List<T> getByPage(int start,int end) throws DataAccessException;
    
    public List<T> getDynamicByPage(int start,int end) throws DataAccessException;
    
    public List<T> getNewsByPage(int start,int end) throws DataAccessException;
    
    public int getCount() throws DataAccessException;
}